<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>
<body>
<h1>用户登录</h1>
<form method="post" action="{% url 'web:login' %}">
    {% csrf_token %}
    <label for="user">用户名</label>
    <input type="text" id="user" name="user" placeholder="用户名">
    <label for="pwd">密码</label>
    <input type="password" id="pwd" name="pwd" placeholder="密码">
    <input type="submit" value="提交"><span style="color: red;">{{ msg }}</span>
</form>
</body>
</html>